<?php

namespace app\middleware;

use app\common\util\LogHelper;

class After
{
    public function handle($request, \Closure $next)
    {
        $response = $next($request);
//        print_r($response);
        LogHelper::log("后置中间件：" . print_r($response->getContent(), true));
        // 添加中间件执行代码

        return $response;
    }
}